package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.WebVisit;

import java.util.Map;

/**
 * @ClassName WebVisitService
 * @Description 访问记录 服务类
 * @Author pengkaka
 * @Date 2020/8/4 19:27
 * @Version 1.0
 **/
public interface WebVisitService {

    /**
     * 获取今日网站访问人数
     * @Author: pengzheng
     * @Description:
     * @Date: 19:27 2020/8/4
     
     * @return: int 
     */
    int getWebVisitCount();

    /**
     * 获取最近一周用户独立IP数和访问量
     * @Author: pengzheng
     * @Description:
     * @Date: 11:13 2020/8/5
     * @return: {
     * date: ["2019-6-20","2019-6-21","2019-6-22","2019-6-23","2019-6-24",,"2019-6-25","2019-6-26"]
     * pv: [10,5,6,7,5,3,2] PV表示访问量
     * uv: [5,3,4,4,5,2,1] UV表示独立用户数
     * }
     */
    Map<String, Object> getVisitByWeek();
    
    /**
     * @Author: pengzheng
     * @Description: 获取分页访问列表
     * @Date: 9:19 2020/8/6
     * @Param searchMap: 
     * @return: com.github.pagehelper.Page<com.itheima.pojo.WebVisit> 
     */
    Page<WebVisit> getPageList(Map<String,Object> searchMap);
}
